//局部内部类,方法里面定义的类(使用概率几乎为0)
package object4.package8;

public class Test3 {

    public void func(){
        class Inner{

            private int m = 10;

            public void printM(){
                System.out.println("m = " + m);
            }
        }

        Inner inner = new Inner();
        inner.printM();
    }
}
